<?php

function wpbootstrap_scripts_with_jquery() {
	// Register the script like this for a theme:
	wp_register_script('custom-script', get_template_directory_uri() . '/assets/js/bootstrap.min.js', array('jquery'));
	// For either a plugin or a theme, you can then enqueue the script:
	wp_enqueue_script('custom-script');

	// load js
	wp_enqueue_script('pagepiling', get_template_directory_uri() . '/assets/js/jquery.pagepiling.js', '', '', false); //Theme custom js
	wp_enqueue_script('custom', get_template_directory_uri() . '/custom.js', '', '', false); //Theme custom js

	// load css
	wp_enqueue_style('enqueue-bootstrap', get_template_directory_uri() . '/assets/css/bootstrap.css', array(), false); //Theme flexslider
	wp_enqueue_style('font-awesome', get_template_directory_uri() . '/assets/css/font-awesome.css', array(), false); //Theme font-awesome
	wp_enqueue_style('pagepiling', get_template_directory_uri() . '/assets/css/jquery.pagepiling.css', array(), false); //Theme font-awesome
	wp_enqueue_style('enqueue-style', get_template_directory_uri() . '/style.css', array(), false); //Theme style

}
add_action('wp_enqueue_scripts', 'wpbootstrap_scripts_with_jquery');